﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>删除日志</title>
    <link href="/Themes/Styles/style.css" rel="stylesheet" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script>
        //保存事件
        function AcceptClick() {
            var postData = {
                KeepTime: $("#KeepTime").val(),
                type: GetQuery('type')
            }
            getAjax("/Log/AcceptDeleteLog", postData, function (data) {
                if (data) {
                    AlertCallback("日志清除成功"); return false;
                } else {
                    Alert_Error("很抱歉，操作失败。"); return false;
                }
            });
        }
    </script>
</head>
<body>
    <form id="form1">
        <br />
        <table border="0" cellpadding="0" cellspacing="0" class="frm">
            <tr>
                <th>日志保留时间[<font face="宋体">*</font>]：
                </th>
                <td>
                    <select id="KeepTime" class="select" style="width: 90%">
                        <option value="7">保留近一周</option>
                        <option value="1">保留近一个月</option>
                        <option value="3">保留近三个月</option>
                        <option value="0">不保留，全部删除</option>
                    </select>
                </td>
            </tr>
        </table>
        <div class="frmbottom">
            <a id="Accept" class="l-btn" href="javascript:void(0)" onclick="AcceptClick();"><span class="l-btn-left">
                <img src="/Themes/Images/16/accept.png" alt="" />确 认</span></a>

            <a class="l-btn" href="javascript:void(0)" onclick="OpenClose();"><span class="l-btn-left">
                <img src="/Themes/Images/16/cancel.png" alt="" />关 闭</span></a>
        </div>
    </form>
</body>
</html>
